export enum ReturnCodeEnum {
  /**
   * @name 成功
   */
  Success = 200,
  /**
   * @name 参数错误
   */
  PayloadError = 400,
  /**
   * @name 没有登录或者登录失效
   */
  NotLogin = 401,
  /**
   * @name 没有权限
   */
  NotAuthorized = 403,
  /**
   * @name 未找到
   */
  NotFind = 404,
  /**
   * @name 失败
   */
  Fail = 500,
}
export enum ReturnCodeChzh {
  '成功' = 200,
  '参数错误' = 400,
  '请登录' = 401,
  '没有权限' = 403,
  '404 NotFind' = 404,
  '失败' = 500,
}
export interface BaseResponseOperator {
  updatedBy: string;
  lastUpdated: string;
}

export interface BaseResponse {
  code: ReturnCodeEnum;
  data?: any;
  msg?: string;
  operator?: BaseResponseOperator;
}
